package com.dq.repository.org;

import com.dq.domain.org.Org;
import com.dq.domain.sys.user.user.base.SysUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @author liuhui
 * @date 2019/9/16 0016 19:25:44
 */
@Repository
public interface OrgRepository extends JpaRepository<Org, Long> {

    List<Org> findByDeletedFalse();

    List<Org> findByIdIn(List<Long> longs);

    List<Org> findByIdNotIn(List<Long> longs);

    Org findByDeletedFalseAndShopManager(SysUser shopManager);


}
